package com.sw.study.mybatis.practice.dynamicsql;

import com.sw.study.mybatis.practice.pojo.User;
import org.apache.ibatis.annotations.CacheNamespace;

import java.util.List;

/**
 * Created by sw on 2020/3/30.
 * 动态sql
 */
@CacheNamespace
public interface DynameSqlUserMapper {

    public List<User> findAll();

    public User selectOne(User user);

    public int  updateUser(User user);

    public int  insertUser(User user);



    public User selectUserCondition(User user);

    /**
     *
     * @param ids
     * @return
     */
    public List<User> selectUserByIds(List<Long> ids);

    public List<User> selectUserByIds(Long[] ids);

    /**
     * 获取用户订单信息
     * @return
     */
    public List<User> findAllOrders();
}